package com.talent.jiwen.http.result.wrongbook;

/**
 * Created by Jason on 2018/1/19.
 */

public class ErrorBookBean {
    private int homeworkId;
    private int homeworkType;
    private int masterLevel;
    private String[] studentHistoryAnswers;
    private String teacherAnswer;
    private String teacherAnswerUrl;
    private int teacherAnswerStatus;
    private int askStudentId;
    private String askStudentName;
    private String teacherRemark;
    private int subjectId;
    private String subjectName;
    private int categoryId;
    private String categoryName;
    private int gradeId;
    private String gradeName;
    private String chapterId;
    private String chapterName;
    private int questionTypeId;
    private String questionTypeName;
    private int difficultyLevelId;
    private String difficultyLevelName;
    private long createTime;

    public int getHomeworkId() {
        return homeworkId;
    }

    public void setHomeworkId(int homeworkId) {
        this.homeworkId = homeworkId;
    }

    public int getHomeworkType() {
        return homeworkType;
    }

    public void setHomeworkType(int homeworkType) {
        this.homeworkType = homeworkType;
    }

    public int getMasterLevel() {
        return masterLevel;
    }

    public void setMasterLevel(int masterLevel) {
        this.masterLevel = masterLevel;
    }

    public String getChapterName() {
        return chapterName;
    }

    public void setChapterName(String chapterName) {
        this.chapterName = chapterName;
    }

    public String[] getStudentHistoryAnswers() {
        return studentHistoryAnswers;
    }

    public void setStudentHistoryAnswers(String[] studentHistoryAnswers) {
        this.studentHistoryAnswers = studentHistoryAnswers;
    }

    public String getTeacherAnswer() {
        return teacherAnswer;
    }

    public void setTeacherAnswer(String teacherAnswer) {
        this.teacherAnswer = teacherAnswer;
    }

    public String getTeacherAnswerUrl() {
        return teacherAnswerUrl;
    }

    public void setTeacherAnswerUrl(String teacherAnswerUrl) {
        this.teacherAnswerUrl = teacherAnswerUrl;
    }

    public int getTeacherAnswerStatus() {
        return teacherAnswerStatus;
    }

    public void setTeacherAnswerStatus(int teacherAnswerStatus) {
        this.teacherAnswerStatus = teacherAnswerStatus;
    }

    public int getAskStudentId() {
        return askStudentId;
    }

    public void setAskStudentId(int askStudentId) {
        this.askStudentId = askStudentId;
    }

    public String getAskStudentName() {
        return askStudentName;
    }

    public void setAskStudentName(String askStudentName) {
        this.askStudentName = askStudentName;
    }

    public String getTeacherRemark() {
        return teacherRemark;
    }

    public void setTeacherRemark(String teacherRemark) {
        this.teacherRemark = teacherRemark;
    }


    public int getSubjectId() {
        return subjectId;
    }

    public void setSubjectId(int subjectId) {
        this.subjectId = subjectId;
    }

    public String getSubjectName() {
        return subjectName;
    }

    public void setSubjectName(String subjectName) {
        this.subjectName = subjectName;
    }

    public int getCategoryId() {
        return categoryId;
    }

    public void setCategoryId(int categoryId) {
        this.categoryId = categoryId;
    }

    public String getCategoryName() {
        return categoryName;
    }

    public void setCategoryName(String categoryName) {
        this.categoryName = categoryName;
    }

    public int getGradeId() {
        return gradeId;
    }

    public void setGradeId(int gradeId) {
        this.gradeId = gradeId;
    }

    public String getGradeName() {
        return gradeName;
    }

    public void setGradeName(String gradeName) {
        this.gradeName = gradeName;
    }

    public String getChapterId() {
        return chapterId;
    }

    public void setChapterId(String chapterId) {
        this.chapterId = chapterId;
    }

    public int getQuestionTypeId() {
        return questionTypeId;
    }

    public void setQuestionTypeId(int questionTypeId) {
        this.questionTypeId = questionTypeId;
    }

    public String getQuestionTypeName() {
        return questionTypeName;
    }

    public void setQuestionTypeName(String questionTypeName) {
        this.questionTypeName = questionTypeName;
    }

    public int getDifficultyLevelId() {
        return difficultyLevelId;
    }

    public void setDifficultyLevelId(int difficultyLevelId) {
        this.difficultyLevelId = difficultyLevelId;
    }

    public String getDifficultyLevelName() {
        return difficultyLevelName;
    }

    public void setDifficultyLevelName(String difficultyLevelName) {
        this.difficultyLevelName = difficultyLevelName;
    }

    public long getCreateTime() {
        return createTime;
    }

    public void setCreateTime(long createTime) {
        this.createTime = createTime;
    }

    public static String getLevelName(int type){
        String levelName = "";
        switch (type){
            case 1:
                levelName = "不懂";
                break;
            case 2:
                levelName = "略懂";
                break;
            case 3:
                levelName = "完全懂";
                break;
        }
        return levelName;
    }

    public static int getLevelType(String name){
        int type = 1;
        switch (name){
            case "不懂":
                type = 1;
                break;
            case "略懂":
                type = 2;
                break;
            case "完全懂":
                type = 3;
                break;
        }
        return type;
    }

    public static String getSourceName(int type){
        String sourceName = "题库训练";
        switch (type){
            case 1:
                sourceName = "题库训练";
                break;
            case 2:
                sourceName = "老师布置";
                break;
            case 3:
                sourceName = "拍照录题";
                break;
        }
        return sourceName;
    }
}
